package com.kaishengit.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.springframework.beans.factory.annotation.Autowired;

import com.kaishengit.pojo.Tel;
import com.kaishengit.service.TelService;
import com.opensymphony.xwork2.ActionSupport;

public class TelAction extends ActionSupport{

	private static final long serialVersionUID = 1L;
	
	private String id;
	private List<Tel> tellist;
	private TelService telService;
	
	
	
	@Action("find")
	public String execute() {
		tellist = telService.find(id);
		return SUCCESS;
	}
	
	
	//get  set
	public List<Tel> getTellist() {
		return tellist;
	}

	public void setTellist(List<Tel> tellist) {
		this.tellist = tellist;
	}

	public TelService getTelService() {
		return telService;
	}

	@Autowired
	public void setTelService(TelService telService) {
		this.telService = telService;
	}
}
